﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestWrapper
{
    public class WrappedClass
    {
        public string MyString { get; set; }

        public string DoSomething(string a, int b)
        {
            return string.Empty;
        }
    }

    public class WrapperClass : IWrapper
    {
        private WrappedClass wrappedClass;
        public event EventHandler OnEvent;

        public WrapperClass(WrappedClass wrappedClass)
        {
            this.wrappedClass = wrappedClass;
        }

        public string MyString
        {
            get
            {
                return wrappedClass.MyString;
            }

            set
            {
                wrappedClass.MyString = value;
            }
        }

        public string DoSomething(string a, int b)
        {
            return wrappedClass.DoSomething(a, b);
        }
    }
}
